package com.example.swimmingpool.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.swimmingpool.entity.order.Order;
import com.example.swimmingpool.entity.order_info.OrderInfo;
import com.example.swimmingpool.qo.course_selection.CourseSelectionQo;
import com.example.swimmingpool.qo.order.OrderQo;
import com.example.swimmingpool.vo.course_selection.CourseSelectionVo;
import com.example.swimmingpool.vo.order.OrderBuyVo;
import com.example.swimmingpool.vo.order.OrderInfoVo;
import com.example.swimmingpool.vo.order.OrderTmpInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    List<OrderTmpInfoVo> getBuyList(@Param("qo") OrderQo qo,@Param("ids") List<Long> ids);

    IPage<Long> getBuyListCount(IPage<OrderBuyVo> page,@Param("qo") OrderQo qo);

    List<Long> getBuyListCount(@Param("qo") OrderQo qo);
}